import request from "@/utils/request.js"


//内部人员登录
export let internallogin = (data) => {
  return request({
    url: "/ruoyi-background/mine/minePass",
    method: "GET",
    params: data
  })
}
//首页轮播图
export let Banner = (data) => {
  return request({
    url: "system/poster/PosterList",
    method: "POST",
    data: data
  })
}
//首页搜索
export let indexSearch = (data) => {
  return request({
    url: "/ruoyi-background/chambers/selectChamberInfo",
    method: "GET",
    params: data
  })
}
//美酒加咖啡轮播图
export let Bannercoffee = (posterIdentifying = 3) => {
  return request({
    url: "/system/poster/list",
    method: "GET",
    params: {
      posterIdentifying
    }
  })
}

//美酒加咖啡(查看目录详情)
// export let coffeeText=(coffeeType)=>{
//   return request({
//     url:"/ruoyi-background/coffee/coffeeText",
//     method:"GET", 
//     params:{
//       coffeeType
//     } 
//   })
// }

//公告各省商会
export let Notice = () => {
  return request({
    url: "/system/provincial/provincialList",
    method: "GET",
  })
}
//公告地址查标题
export let NoticeAddress = (noticeAddress) => {
  return request({
    url: "/ruoyi-background/notice/noticeAddress",
    method: "GET",
    params: {
      noticeAddress
    }
  })
}
//公告模块,按标题查公告详情
export let NoticeTitle = (noticeTitle) => {
  return request({
    url: "/ruoyi-background/notice/noticeTitle",
    method: "GET",
    params: {
      noticeTitle
    }
  })
}
//招聘模块,查看招聘公司
export let selectRecruitName = (data) => {
  return request({
    url: "/ruoyi-background/recruits/selectRecruitName",
    method: "GET",
    params: data
  })
}
//招聘模块,点击招聘公司的详情
export let recruitsId = (recruitId) => {
  return request({
    url: "/ruoyi-background/recruits/" + recruitId,
    method: "GET",
  })
}
//新闻类型模块,国内国际新闻查看类型
export let newsTypeName = () => {
  return request({
    url: "/ruoyi-background/newstype/newsTypeName",
    method: "GET",
  })
}
//新闻模块,国内新闻
export let newschineType = (newsType) => {
  return request({
    url: "/ruoyi-background/news/chinaFindNewsByType",
    method: "GET",
    params: {
      newsType
    }
  })
}
//新闻模块,国外新闻
export let newsType = (newsType) => {
  return request({
    url: "/ruoyi-background/news/otherFindNewsByType",
    method: "GET",
    params: {
      newsType
    }
  })
}
//新闻模块,点击标题查看详情
export let newsTitle = (newsTitle) => {
  return request({
    url: "/ruoyi-background/news/newsTitle",
    method: "GET",
    params: {
      newsTitle
    }
  })
}
//商会新闻查看标题
export let newsTitles = (newsArea) => {
  return request({
    url: "/ruoyi-background/news/newsTitles",
    method: "GET",
    params: {
      newsArea
    }
  })
}
//新闻的类型
export let newType = () => {
  return request({
    url: "/ruoyi-background/news/newType",
    method: "GET",
  })
}
//商会新闻查看详情
export let NewsByType = (newsId) => {
  return request({
    url: "/ruoyi-background/news/newsTitle",
    method: "GET",
    params: {
      newsId
    }
  })
}
//商会新闻(查看全国各省)
export let newsDate = () => {
  return request({
    url: "/ruoyi-background/news/newsDate",
    method: "GET",
  })
}
//商会新闻(查看海外)
export let newsBiaoti = (newsArea) => {
  return request({
    url: "/ruoyi-background/news/newsBiaoti",
    method: "GET",
    params: {
      newsArea
    }
  })
}
//查看国内新闻标题(福建)
export let newsTitlesGuonei = (newsArea) => {
  return request({
    url: "/ruoyi-background/news/newsTitlesGuonei",
    method: "GET",
    params: {
      newsArea
    }
  })
}
//查看国内新闻标题(除定位出来所有的数据)
export let AllnewsType = (fatherId, newstypeName) => {
  return request({
    url: "/ruoyi-background/news/newsType",
    method: "GET",
    params: {
      fatherId, newstypeName
    }
  })
}
//访谈模块  查看访谈类型(媒体和电视)
export let interviewTypeNam = () => {
  return request({
    url: "/ruoyi-background/interviewtype/interviewTypeName",
    method: "GET",

  })
}
//访谈模块  按类型查找访谈标题
export let interviewType = (data) => {
  return request({
    url: "/ruoyi-background/interview/interviewType",
    method: "GET",
    params: data
  })
}
//访谈模块  按类型查找访谈标题
export let interviewTitle = (data) => {
  return request({
    url: "/ruoyi-background/interview/interviewTitle",
    method: "GET",
    params: data
  })
}
//讲座模块按类型查看
export let institueType = () => {
  return request({
    url: "/ruoyi-background/institue/institueType",
    method: "GET",
  })
}
//讲座模块点击标题查看详情
export let institueText = (institueTitle) => {
  return request({
    url: "/ruoyi-background/institue/institueText",
    method: "GET",
    params: {
      institueTitle
    }
  })
}
//讲座模块点击标题查看详情
export let findContent = (data) => {
  return request({
    url: "/ruoyi-background/institue/findContent",
    method: "GET",
    params: data
  })
}
//讲座模块点击标题查看详情
export let getLecture = (data) => {
  return request({
    url: "/system/institueVideo/getinfo",
    method: "GET",
    params: data
  })
}
//客服    
export let service = (userName, userId, serviceType, serviceComplain, userTel, province) => {
  return request({
    url: "/system/service/add",
    method: "POST",
    data: {
      userName, userId, serviceType, serviceComplain, userTel, province
    }
  })
}
//各省商会(根据省份查找商会类型)   
export let selectChamberType = (provincial) => {
  return request({
    url: "/ruoyi-background/chambers/selectChamberType",
    method: 'GET',
    params: {
      provincial
    }
  })
}
//各省商会(根据商会类型id查找商会名称)
export let selectChamberName = (provincial, chamberTypeId) => {
  return request({
    url: "/ruoyi-background/chambers/selectChamberName",
    method: "POST",
    data: {
      provincial, chamberTypeId
    }
  })
}
//商会入驻(商会类型)
export let ChamberTypeList = () => {
  return request({
    url: "/system/provincial/ChamberTypeList",
    method: "GET",

  })
}
//大项目
export let projectType = (data) => {
  return request({
    url: "/ruoyi-background/TProjectType/selectProjectType",
    method: "GET",
    params: data
  })
}

//大项目(商会推荐项目)
export let projectTitle = (data) => {
  return request({
    url: "/ruoyi-background/projects/projectTitle",
    method: "GET",
    params: data
  })
}
//大项目(重大项目)
export let projectByTitle = (data) => {
  return request({
    url: "/ruoyi-background/projects/projectByTitle",
    method: "GET",
    params: data
  })
}
//新产品(获取标题)   
export let productType = (data) => {
  return request({
    url: "/ruoyi-background/TProductType/",
    method: "GET",
    params: data
  })
}
//新产品(查看定位和海外的标题)   
export let productName = (data) => {
  return request({
    url: "/ruoyi-background/product/productName",
    method: "GET",
    params: data
  })
}
//新产品(查看重要产品的标题)   
export let selectTProductByName = (data) => {
  return request({
    url: "/ruoyi-background/product/selectTProductByName",
    method: "GET",
    params: data
  })
}
//新产品(获取高端产品信息详细信息)   
export let productId = (data) => {
  return request({
    url: "/ruoyi-background/product/selectText",
    method: "GET",
    params: data
  })
}
//商企库
export let discusslist = (data) => {
  return request({
    url: "/ruoyi-background/commerceType/selectTCommerceType",
    method: "GET",
    params: data
  })
}
//商企库(共享须知名单的详情)
export let discusspro = (ceId) => {
  return request({
    url: "/system/ce/getInfo",
    method: "GET",
    params: {
      ceId
    }
  })
}
//商企库(各省企业资源名单的详情)
export let namelist = (listProvincial) => {
  return request({
    url: "/system/namelist/list",
    method: "GET",
    params: {
      listProvincial
    }
  })
}
//商企库(按省份查看标题)
export let selectTCommerceProvince = (data) => {
  return request({
    url: "/ruoyi-background/commerce/selectTCommerceProvince",
    method: "GET",
    params: data

  })
}
//商企库(查看商企库全国连锁行业)
export let selectTCommerceType = (data) => {
  return request({
    url: "/ruoyi-background/commerceType/selectTCommerceType",
    method: "GET",
    params: data

  })
}
//商企库(查看商企库全国连锁行业的标题)
export let CommerceType = (data) => {
  return request({
    url: "/ruoyi-background/commerce/selectTCommerceType",
    method: "GET",
    params: data

  })
}
//美酒加咖啡(根据标题查文案)
export let findByTitle = (data) => {
  return request({
    url: "/system/coffeeWriting/findByTitle/",
    method: "GET",
    params: data
  })
}
//美酒加咖啡(查看美酒加咖啡类型)
export let coffeeType = () => {
  return request({
    url: "/ruoyi-background/coffee/coffeeType",
    method: "GET",
  })
}
//美酒加咖啡(查看文化背景和视频标题)
export let findByCoffee = () => {
  return request({
    url: "/system/coffeeWriting/findByCoffee",
    method: "POST",
  })
}
//美酒加咖啡(美酒系列和咖啡系列)
export let coffeeprolist = (data) => {
  return request({
    url: "/ruoyi-background/coffee/listCoffeePro",
    method: "POST",
    data
  })
}
//美酒加咖啡(定制方案的列表)
export let upList = () => {
  return request({
    url: "/system/category/upList",
    method: "GET",
  })
}
//美酒加咖啡(查看项目简介)
export let coffeeIntro = (coffeeType) => {
  return request({
    url: "/ruoyi-background/coffee/coffeeIntro",
    method: "GET",
    params: {
      coffeeType
    }
  })
}
//美酒加咖啡(查看详情)
// export function coffeeRun(data) {
//   return request({
//     url: "/ruoyi-background/coffee/coffeeRun",
//     method: "GET",
//     params: data
//   })
// }
//美酒加咖啡(查看详情)
export function coffeeRun(data) {
  return request({
    url: "/ruoyi-background/coffee/findDetailsByTypeIdAndCoffeeId",
    method: "GET",
    params: data
  })
}
//美酒加咖啡(查看全国连锁点导航图)
export let coffeeMap = (coffeeType) => {
  return request({
    url: "/ruoyi-background/coffee/coffeeMap",
    method: "GET",
    params: {
      coffeeType
    }
  })
}
//美酒加咖啡(查看诚邀全国城市合伙人)
export let coffeeMan = (coffeeType) => {
  return request({
    url: "/ruoyi-background/coffee/coffeeMan",
    method: "GET",
    params: {
      coffeeType
    }
  })
}
//美酒加咖啡(定制项目)
export let coffeeProject = (coffeeType) => {
  return request({
    url: "/ruoyi-background/coffee/coffeeProject",
    method: "GET",
    params: {
      coffeeType
    }
  })
}
//人才库(据地区和人才类型查询人才)
export let findByAreaAndType = (params) => {
  return request({
    url: "/system/talUser/findByAreaAndType",
    method: "GET",
    params: params
  })
}
//人才库(获取人才详细信息)
export let talusId = (taluserId) => {
  return request({
    url: "/system/talUser/getInfo/" + taluserId,
    method: "GET",
  })
}
//人才库(添加人才)
export let talUser = (params) => {
  return request({
    url: "/system/talUser/add",
    method: "POST",
    data: params
  })
}
//点击标题获得视频地址(图片)
export let videoTitle = (videoTitle) => {
  return request({
    url: "/ruoyi-background/video/videoTitle",
    method: "GET",
    params: {
      videoTitle
    }
  })
}
//点击标题获得视频地址
export let video = (videoId) => {
  return request({
    url: "/ruoyi-background/video/" + videoId,
    method: "GET",

  })
}
//商企秘书
export let secretaryTitle = () => {
  return request({
    url: "/ruoyi-background/secretary/secretaryTitle",
    method: "GET",
  })
}
//商企秘书详情
export let secretaryDetail = (data) => {
  return request({
    url: "/ruoyi-background/secretary/secretaryId",
    method: "GET",
    params: data
  })
}
//驻会机构查询列表   
export let rganizationType = () => {
  return request({
    url: "/organizationType/organizationType/list",
    method: "GET",
  })
}
//驻会机构查询 
export let rganizationTypeId = (organizationTypeId) => {
  return request({
    url: "/organizationType/organizationType/" + organizationTypeId,
    method: "GET",
  })
}
//驻会机构(申请须知)
export let ResidenfindById = (otherId) => {
  return request({
    url: "/system/coffeeWriting/findById",
    method: "GET",
    params: {
      otherId
    }
  })
}
//驻会机构(新闻列表)
export let getInfoByOrIdAndPro = (organizationType, organizationProvincial) => {
  return request({
    url: "/ruoyi-background/organization/getInfoByOrIdAndPro",
    method: "GET",
    params: {
      organizationType, organizationProvincial
    }
  })
}
// 全国
export let selectAllTitle = (data) => {
  return request({
    url: "/ruoyi-background/organization/selectAllTitle",
    method: "GET",
    params: data
  })
}
// 福建
export let selectTitle = (data) => {
  return request({
    url: "/ruoyi-background/organization/selectTitle",
    method: "GET",
    params: data
  })
}
//商机(查看商机名茶)
export let getFatherText = (data) => {
  return request({
    url: "/system/BussinessDetails/getFatherText",
    method: "GET",
    params: data
  })
}
//商机 详情
export let getSelectBusiness = (data) => {
  return request({
    url: "/ruoyi-background/business/selectBusiness",
    method: "GET",
    params: data
  })
}
//商机(点击省份查看详情)
export let businessproText = (data) => {
  return request({
    url: "/ruoyi-background/businesspro/businessproTitle",
    method: "GET",
    params: data
  })
}
//商机(点击省份查看详情)
export let getFather = (data) => {
  return request({
    url: "/system/BussinessDetails/getFather",
    method: "POST",
    data
  })
}
//商机(点击省份查看详情)
export let getContent = (data) => {
  return request({
    url: "/system/BussinessDetails/getContent",
    method: "GET",
    params: data
  })
}
//消息(按标题查看详情)
export let messageTitle = (data) => {
  return request({
    url: "/ruoyi-background/message/messageTitle",
    method: "GET",
    params: data
  })
}
//消息(按标题查看详情)
export let messageDetails = (data) => {
  return request({
    url: "/system/MessageDetails/messageDetailsId",
    method: "GET",
    params: data
  })
}
export let getMessageBanner = (data) => {
  return request({
    url: "/ruoyi-background/message/getmessageUrl",
    method: "GET",
    params: data
  })
}
//消息(详情)
export let messageDetailsId = (data) => {
  return request({
    url: "/system/MessageDetails/messageDetailsId",
    method: "GET",
    params: data
  })
}
//我的(按标题查看详情)
export let mainTitle = (mineTitle) => {
  return request({
    url: "/ruoyi-background/mine/mineText",
    method: "GET",
    params: mineTitle
  })
}
// 人才类型
export let talType = (typeId) => {
  return request({
    url: "/system/talType/list",
    method: "GET",
    // params:  {data} 
    params: {
      typeId
    }

  })
}
// 人才类型
export let personType = (data) => {
  return request({
    url: "system/tallist/list",
    method: "GET",
    params: data
  })
}
// 须知详情
export let findById = (data) => {
  return request({
    url: "/system/coffeeWriting/findById",
    method: "GET",
    params: data
  })
}
// 图片上传
export let fileUpload = (data) => {
  return request({
    url: "/system/user/profile/test",
    method: "POST",
    data: data
  })
}
// 添加商会
export let addChambers = (data) => {
  return request({
    url: "/ruoyi-background/chambers",
    method: "POST",
    data: data
  })
}

// 获取生命篇标题
export function getLifeTitle(data) {
  return request({
    url: "/ruoyi-background/life/lifeTitle",
    method: "GET",
    params: data
  })
}

// 获取生命篇详情
export function getLifeDetail(data) {
  return request({
    url: "/ruoyi-background/life/lifeText",
    method: "GET",
    params: data
  })
}
// 获取我的页面内容
export function getMineTitle(data) {
  return request({
    url: "/ruoyi-background/mine/mineTitle",
    method: "GET",
    params: data
  })
}
// 获取我的详情
export function getMineDetail(data) {
  return request({
    url: "/ruoyi-background/mine/mineText",
    method: "GET",
    params: data
  })
}
// 共享平牌LOGO详情
export function selectSon(data) {
  return request({
    url: "/ruoyi-background/mine/selectSon",
    method: "GET",
    params: data
  })
}
//我的(共享品牌的详情)
export function sharegetDetails(data) {
  return request({
    url: "/system/details/getDetails",
    method: "GET",
    params: data
  })
}

//我的(营销典案参考视频列表)
export function videolist(data) {
  return request({
    url: "/system/video/list",
    method: "GET",
    params: data
  })
}
//我的(营销典案参考视频)
export function getVideoUrl(data) {
  return request({
    url: "/system/video/getVideoUrl",
    method: "GET",
    params: data
  })
}
// 获取消息列表
export function getMessageList(data) {
  return request({
    url: "/ruoyi-background/message/messageTitles",
    method: "GET",
    params: data
  })
}
// 获取商机详情
export function getBusinessproDetail(data) {
  return request({
    url: "/ruoyi-background/businesspro/businessproText",
    method: "GET",
    params: data
  })
}
// 获取商机详情
export function getBusinessproUrl(data) {
  return request({
    url: "/ruoyi-background/business/list",
    method: "GET",
    params: data
  })
}
// 获取美酒咖啡详情列表
// export function getCoffDetailList(data) {
//   return request({
//     url: "/system/type/getInfo",
//     method: "GET",
//     params: data
//   })
// }
// 获取美酒咖啡2級列表
export function getCoffDetailList(data) {
  return request({
    url: "/ruoyi-background/coffee/findTypeByCoffeeId",
    method: "GET",
    params: data
  })
}
// 获取美酒咖啡详情
export function getCoffeeProById(data) {
  return request({
    url: "/ruoyi-background/coffeepro/getCoffeeProById",
    method: "GET",
    params: data
  })
}